home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 52
/
Amiga Format AFCD52 (Issue 136, May 2000).iso
/
-serious-
/
programming
/
c
/
stormamiga_lib-v45_00d
/
include
/
time_stormamiga.h
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-28
|
1KB
|
65 lines
#ifndef TIME_STORMAMIGA_H
#define TIME_STORMAMIGA_H
/*
** $VER: time_stormamiga.h 1.1 (18.09.98)
** Includes Release 45.00
**
** Copyright © 1996/2000 by CyberdyneSystems
**
** written by Matthias Henze
** All Rights Reserved
*/
#ifndef STORMAMIGA_H
#include <stormamiga.h>
#endif
#ifndef _INCLUDE_TIME_H
#include <time.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
#define CLK_TCK 50
/*----- stormamiga-functions -----*/
#ifdef STORMAMIGA_DEUTSCH
#define strftime strftime_d
#define asctime asctime_d
#define ctime ctime_d
#endif
int strftime_d (char *, uint, cchar *, const struct tm *);
char *asctime_d (const struct tm *);
char *ctime_d (const time_t *);
#ifdef __cplusplus
}
#endif
#ifdef STORMAMIGA_INLINE
/*----- ANSI C-functions -----*/
__inline struct tm *localtime (const time_t *tp)
{ return gmtime (tp); }
#ifndef STORMAMIGA_DEUTSCH
__inline char *ctime (const time_t *t)
{ return asctime (localtime (t)); }
#endif
__inline double difftime (time_t t1, time_t t2)
{ return (t1 - t2); }
/*----- stormamiga-functions -----*/
__inline char *ctime_d (const time_t *t)
{ return asctime_d (localtime (t)); }
#endif /* STORMAMIGA_INLINE */
#endif /* TIME_STORMAMIGA_H */